<!-- demand 页面内容 -->
<section class="demand reservation-right" ng-controller="demandCtrl">
    <!-- <span class="caret"></span> -->
    <form name="demanform" role="form" autocomplete="false" novalidate ng-submit="goInfoNext(demanform.$invalid);">

        <!-- <div class="form-group from-group-btn-group">
          <div class="btn-group">
            <button type="button" class="btn btn-default" ng-class="{'active': !service.mount_order}" ng-click="changeMountOrder(false);">测量单</button>
            <button type="button" class="btn btn-default" ng-class="{'active': service.mount_order}" ng-click="changeMountOrder(true);">安装单</button>
          </div>
        </div> -->
        <div class="form-group from-group-btn-group">
          <button type="button" class="btn mt_button_default" ng-class="{'active': !service.mount_order}" ng-click="changeMountOrder(false);">测量单</button>
          <button type="button" class="btn mt_button_default" ng-class="{'active': service.mount_order}" ng-click="changeMountOrder(true);">安装单</button>
        </div>

        <div class="form-group">
          <input type="number" id='de-square' class="form-control" input-format placeholder="预估面积（㎡）" ng-pattern="/^\d+(\.\d{0,2})?$/" name="square" ng-model="service.square" autocomplete="false" required>
        </div>
        <div class="form-group error-container" ng-show="issubmit && (demanform.square.$error.pattern || demanform.square.$error.required)">
          请输入预估面积（㎡）
        </div>

        <div class="form-group">
          <select class="styled-select form-control" id='de-material' name='material' ng-model='service.material' ng-options="fetch.name as fetch.name for fetch in fetchs.material" required>
              <option value="" selected>请选择材质</option>
          </select>
        </div>
        <div class="form-group error-container" ng-show="issubmit && demanform.material.$error.required">
          请选择材质
        </div>

        <div class="form-group">
          <select class="styled-select form-control" id='de-company_id' name='company_id' ng-model='service.company_id' ng-options="fetch.id as fetch.name for fetch in fetchs.company" required>
              <option value="" selected>请选择品牌</option>
          </select>
        </div>
        <div class="form-group error-container" ng-show="issubmit && demanform.company_id.$error.required">
          请选择品牌
        </div>

        <div class="form-group">
          <input class="form-control" id='demandflatpickr1' set-time time='service.mount_order? service.install_date :service.booking_date' name='booking_date' type="text" placeholder="请选择上门时间" required>
        </div>

        <div class="form-group error-container" ng-show="issubmit && demanform.booking_date.$error.required">
          请选择上门时间
        </div>

        <div class="form-group">
          <input type="text" id='de-order_no' class="form-control" placeholder="备注(可选)" name="order_no" ng-model="service.order_no" autocomplete="false">
        </div>

        <div class="row button-arrows">
            <div class="col-sm-offset-1 col-sm-4 col-xs-6">
              <button type="button" class='btn btn-block button-arrows-left disabled' disabled>
                <span class="icon-left-arrow"></span>
                上一步
              </button>
            </div>
            <div class="col-sm-offset-1 col-sm-4 col-xs-6">
              <button type="submit" class='btn btn-block button-arrows-right'>
                下一步
                <span class="icon-right-arrow"></span>
              </button>
            </div>
        </div>
    </form>
</section>
